package com.tqjc.system.system.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @description: 错误信息记录表entity
 * @Author: 86195
 * @Date: 2024/1/3 16:24
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tqjc_xg_alarm_info")
@Builder
public class SysAlarmInfoEntity {

    @TableId(type = IdType.AUTO)
    private Long idKey;

    private String carName;


    private String errMsg;

    private String status;

    private String type;


    @TableField(value="CREATE_NAME", fill= FieldFill.INSERT)
    private String createName;

    @TableField(value="CREATE_DATE", fill=FieldFill.INSERT)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    @TableField(value="UPDATE_NAME", fill=FieldFill.UPDATE)
    private String updateName;

    @TableField(value="UPDATE_DATE", fill=FieldFill.UPDATE)
    private Date updateDate;
}
